<html>
  <head>
    <title>Fail</title>
  </head>
  <body>
    <h1>Reference to subframes' extension entry points should not crash!</h1>
    <p>CPU info:<span id="result"></span></p>
    <iframe id="subFrame"></iframe>
    <script>
      var iframe = document.getElementById("subFrame");
      crossExtension = eval(iframe.contentWindow.xwalk);
      eval(crossExtension.experimental.system);
      console.log(crossExtension.experimental.system.getCPUInfo());
      var result = document.getElementById("result");
      result.innerHTML = crossExtension.experimental.system.getCPUInfo();
      document.title = "Pass";
    </script>
  </body>
</html>
